/**
 * \file ThreadLauncher_Win32.cpp
 * \brief ThreadLauncher declaration class
 * \author Edouard ROGE
 * \date 31 august 2012
 */

#include "Core/Log/LogManager.h"
#include "Thread.h"
#include "ThreadLauncher_Win32.h"


namespace Core
{
	namespace Thread
	{
		ThreadLauncher::ThreadLauncher()
		{
		}

		ThreadLauncher::~ThreadLauncher()
		{
		}

		void ThreadLauncher::WaitFor(Thread * _pThread)
		{
			LOG_INFO("Synchronize thread %d", _pThread->m_handle);
			WaitForSingleObject(_pThread->m_handle, INFINITE);
		}
	}
}